

function SarfFix2:System_ChatFix()
	local chatFrameBase = "ChatFrame";
	
	local frame = nil;
	for i = 1, NUM_CHAT_WINDOWS do
		frame = getglobal(chatFrameBase..i.."TabText");
		if ( frame ) then
			if ( frame:GetText() == "System" ) then
				getglobal(chatFrameBase..i):RegisterEvent("CHAT_MSG_SYSTEM");
			end
		end
	end
end

SarfFix2:AddInitializer(SarfFix2.System_ChatFix);